package admin.board.board_list.action;

import admin.board.board_list.dao.BoardlistDao;

import com.opensymphony.xwork2.ActionSupport;

public class DeleteAction extends ActionSupport {
	private BoardlistDao dao;
	private int board_no;
	
	public DeleteAction() {
		dao = BoardlistDao.getInstance();
	}
	
	public void setBoard_no(int board_no) {
		this.board_no = board_no;
	}
	
	public String execute() throws Exception {
		dao.delete(board_no);
		System.out.println("Delete Boardlist : " + board_no);
		
		return SUCCESS;
	}
}